//
//  UILabel+HZSettingLabel.m
//  微博 OC
//
//  Created by 黑眼圈 on 16/4/18.
//  Copyright © 2016年 heiyan. All rights reserved.
//

#import "UILabel+HZSettingLabel.h"

@implementation UILabel (HZSettingLabel)


#pragma mark -
#pragma mark     自定义初始化方法
-(instancetype)initWithTitle:(NSString*)title :(UIColor*)color :(CGFloat)preferredMaxLayoutWidth :(CGFloat)font{
    
    UILabel* label = [[UILabel alloc]init];
    
    //设置文本
    label.text = title;
    
    //设置自动换行
    label.preferredMaxLayoutWidth = preferredMaxLayoutWidth;
    label.numberOfLines = 0;
    
    label.textColor = color;

    
    label.font = [UIFont systemFontOfSize:font];
    
    return label;
}


@end
